from django.shortcuts import render
from django.contrib.auth import authenticate, login
from django.shortcuts import render, get_object_or_404
from django.shortcuts import get_list_or_404
from django.http import HttpResponse

from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.template.defaulttags import csrf_token

from django.template import RequestContext, loader

# Create your views here.

def load_template(decoretor_arg):
    def _load_template(method):    
        def __load_template(*args,**kargs):
            print method.__name__
            template =loader.get_template(decoretor_arg+".html")
            return method(*args,**kargs)
        return __load_template
    return _load_template



# @load_template("isa/home")
def home(request):
    template = loader.get_template("isa/home.html")
    # global template ,"there"
    if request.method == "GET":
        context  = RequestContext(request,{

            })
        return HttpResponse(template.render(context))
